package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class VarcharStringType implements PredefinedType {

    private int beginIndex;
    private int endIndex;
    private UnsignedInteger length;
    private CharacterSetName characterSetSpecification;
    private CollateClause collateClause;

    public VarcharStringType(int beginIndex,
                             int endIndex,
                             UnsignedInteger length,
                             CharacterSetName characterSetSpecification,
                             CollateClause collateClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.length = length;
        this.characterSetSpecification = characterSetSpecification;
        this.collateClause = collateClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public UnsignedInteger getLength() {
        return length;
    }

    public CharacterSetName getCharacterSetSpecification() {
        return characterSetSpecification;
    }

    public CollateClause getCollateClause() {
        return collateClause;
    }

}
